package com.pjnkj.thunder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 映射表
 * </p>
 *
 * @author pjnkj
 * @since 2022-01-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Mapping对象", description="映射表")
public class Mapping extends Model<Mapping> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "自定义反射类")
    private String clazz;

    @ApiModelProperty(value = "输入类")
    private String input;

    @ApiModelProperty(value = "输出类")
    private String output;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
